package com.seagull.core.test.desing.zhuangshiqi;

import com.seagull.core.test.desing.zhuangshiqi.Hero;

/**
 * @author:jian.zhou
 * @date:2017/10/26
 * @version:0.0.1
 * @desc:技能栏
 */
public class Skills implements Hero{

    private Hero hero;

    public Skills (Hero hero){
        this.hero = hero;
    }

    @Override
    public void learnSkills() {
        if ( hero != null ){
            hero.learnSkills();
        }
    }
}
